// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.

import { defineConfig } from '@lynx-js/rspeedy';
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin';
import { pluginQRCode } from '@lynx-js/qrcode-rsbuild-plugin';

export default defineConfig({
  source: {
    entry: {
      devtoolSwitch: './src/index.tsx',
    },
  },
  output: {
    // We inline all the resources.
    dataUriLimit: Infinity,
  },
  plugins: [pluginReactLynx(), pluginQRCode()],
});
